# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-net-netmask
_pkgname=Net-Netmask
pkgver=2.0001
pkgrel=5
pkgdesc='Parse, manipulate and lookup IP network blocks.'
arch=('any')
url='https://metacpan.org/release/Net-Netmask'
license=('custom:unknown')
depends=('perl')
source=("https://cpan.metacpan.org/authors/id/J/JM/JMASLAK/$_pkgname-$pkgver.tar.gz")
sha512sums=('87f4f875dc1f07968a71d558bb02b8443d63601e8414a109ddfdd47c5d8616ed0678ea950426ec646bf3b06035ff1dabf067dafb18cb66291b882b9364c0de0b')
options=('!emptydirs')

build() {
  cd  "$_pkgname-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd  "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" pure_install doc_install

  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}

